﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000119 RID: 281
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BattleTarget : IMessage<BattleTarget>, IMessage, IEquatable<BattleTarget>, IDeepCloneable<BattleTarget>, IBufferMessage
	{
		// Token: 0x170003E3 RID: 995
		// (get) Token: 0x06000D05 RID: 3333 RVA: 0x00027878 File Offset: 0x00025A78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BattleTarget> Parser
		{
			get
			{
				return BattleTarget._parser;
			}
		}

		// Token: 0x170003E4 RID: 996
		// (get) Token: 0x06000D06 RID: 3334 RVA: 0x0002787F File Offset: 0x00025A7F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BattleTargetReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170003E5 RID: 997
		// (get) Token: 0x06000D07 RID: 3335 RVA: 0x00027891 File Offset: 0x00025A91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BattleTarget.Descriptor;
			}
		}

		// Token: 0x06000D08 RID: 3336 RVA: 0x00027898 File Offset: 0x00025A98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleTarget()
		{
		}

		// Token: 0x06000D09 RID: 3337 RVA: 0x000278A0 File Offset: 0x00025AA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleTarget(BattleTarget other) : this()
		{
			this.id_ = other.id_;
			this.progress_ = other.progress_;
			this.totalProgress_ = other.totalProgress_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000D0A RID: 3338 RVA: 0x000278DD File Offset: 0x00025ADD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleTarget Clone()
		{
			return new BattleTarget(this);
		}

		// Token: 0x170003E6 RID: 998
		// (get) Token: 0x06000D0B RID: 3339 RVA: 0x000278E5 File Offset: 0x00025AE5
		// (set) Token: 0x06000D0C RID: 3340 RVA: 0x000278ED File Offset: 0x00025AED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x170003E7 RID: 999
		// (get) Token: 0x06000D0D RID: 3341 RVA: 0x000278F6 File Offset: 0x00025AF6
		// (set) Token: 0x06000D0E RID: 3342 RVA: 0x000278FE File Offset: 0x00025AFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Progress
		{
			get
			{
				return this.progress_;
			}
			set
			{
				this.progress_ = value;
			}
		}

		// Token: 0x170003E8 RID: 1000
		// (get) Token: 0x06000D0F RID: 3343 RVA: 0x00027907 File Offset: 0x00025B07
		// (set) Token: 0x06000D10 RID: 3344 RVA: 0x0002790F File Offset: 0x00025B0F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TotalProgress
		{
			get
			{
				return this.totalProgress_;
			}
			set
			{
				this.totalProgress_ = value;
			}
		}

		// Token: 0x06000D11 RID: 3345 RVA: 0x00027918 File Offset: 0x00025B18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BattleTarget);
		}

		// Token: 0x06000D12 RID: 3346 RVA: 0x00027928 File Offset: 0x00025B28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BattleTarget other)
		{
			return other != null && (other == this || (this.Id == other.Id && this.Progress == other.Progress && this.TotalProgress == other.TotalProgress && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000D13 RID: 3347 RVA: 0x00027984 File Offset: 0x00025B84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.Progress != 0U)
			{
				num ^= this.Progress.GetHashCode();
			}
			if (this.TotalProgress != 0U)
			{
				num ^= this.TotalProgress.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000D14 RID: 3348 RVA: 0x000279F5 File Offset: 0x00025BF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000D15 RID: 3349 RVA: 0x000279FD File Offset: 0x00025BFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000D16 RID: 3350 RVA: 0x00027A08 File Offset: 0x00025C08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Id != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Id);
			}
			if (this.Progress != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Progress);
			}
			if (this.TotalProgress != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.TotalProgress);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000D17 RID: 3351 RVA: 0x00027A7C File Offset: 0x00025C7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.Progress != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Progress);
			}
			if (this.TotalProgress != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TotalProgress);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000D18 RID: 3352 RVA: 0x00027AEC File Offset: 0x00025CEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BattleTarget other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.Progress != 0U)
			{
				this.Progress = other.Progress;
			}
			if (other.TotalProgress != 0U)
			{
				this.TotalProgress = other.TotalProgress;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000D19 RID: 3353 RVA: 0x00027B50 File Offset: 0x00025D50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000D1A RID: 3354 RVA: 0x00027B5C File Offset: 0x00025D5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 16U)
					{
						if (num != 24U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.TotalProgress = input.ReadUInt32();
						}
					}
					else
					{
						this.Progress = input.ReadUInt32();
					}
				}
				else
				{
					this.Id = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000596 RID: 1430
		private static readonly MessageParser<BattleTarget> _parser = new MessageParser<BattleTarget>(() => new BattleTarget());

		// Token: 0x04000597 RID: 1431
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000598 RID: 1432
		public const int IdFieldNumber = 1;

		// Token: 0x04000599 RID: 1433
		private uint id_;

		// Token: 0x0400059A RID: 1434
		public const int ProgressFieldNumber = 2;

		// Token: 0x0400059B RID: 1435
		private uint progress_;

		// Token: 0x0400059C RID: 1436
		public const int TotalProgressFieldNumber = 3;

		// Token: 0x0400059D RID: 1437
		private uint totalProgress_;
	}
}
